package com.ndp.fb.mongo.api;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ndp.fb.mongo.model.Feed;

public interface FeedMongoService {
	void save(List<Feed> feeds);
	
	JSONArray find(JSONObject query);
	void deleteFeed(String feedId,String updateDate);
	List<Feed> find(JSONObject query,int skip,int limit);
	
	List<Feed> sample(int n);

	List<Feed> sampleByFeed(String s, int i);

	void deleteNewFeed(Long id, Long materialId);

	List<Feed> sampleByNewFeed(Long feedId, Long MaterielId, int i);

	void saveNew(List<Feed> feedList);
}
